import request from '@/utils/request'

// 查询购买车辆订单管理列表
export function listPurchasevehicleorder(query) {
  return request({
    url: '/purchasevehicleorder/purchasevehicleorder/list',
    method: 'get',
    params: query
  })
}

// 查询购买车辆订单管理详细
export function getPurchasevehicleorder(purchasevehicleorderid) {
  return request({
    url: '/purchasevehicleorder/purchasevehicleorder/' + purchasevehicleorderid,
    method: 'get'
  })
}

// 新增购买车辆订单管理
export function addPurchasevehicleorder(data) {
  return request({
    url: '/purchasevehicleorder/purchasevehicleorder',
    method: 'post',
    data: data
  })
}

// 修改购买车辆订单管理
export function updatePurchasevehicleorder(data) {
  return request({
    url: '/purchasevehicleorder/purchasevehicleorder',
    method: 'put',
    data: data
  })
}

// 删除购买车辆订单管理
export function delPurchasevehicleorder(purchasevehicleorderid) {
  return request({
    url: '/purchasevehicleorder/purchasevehicleorder/' + purchasevehicleorderid,
    method: 'delete'
  })
}
